package com.itheima.homework.work2;
//爬行
public class Reptiles extends Animal{
    public Reptiles() {
    }

    public Reptiles(String age, String color) {
        super(age, color);
    }
}
//鳄鱼
class crocodile extends Reptiles{
    public crocodile() {
    }

    public crocodile(String age, String color) {
        super(age, color);
    }

    @Override
    public void action() {
        System.out.println("爬行");
    }
}